package com.cai.baselibrary.net.response

/**返回编码*/
data class Response(var code: Int = 0)

/**基本数据*/
data class BaseResponse<T>(val code: Int,val msg:String,val data:T)

/**简单数据*/
data class SimpleResponse(val code: Int,val msg:String) {
    fun toBaseResponse(): BaseResponse<*> {
        return BaseResponse(code,msg,"")
    }
}
